package com.ruoyi.pos.service;

import java.util.List;
import com.ruoyi.pos.domain.Category;

/**
 * categoryService接口
 * 
 * @author wzh
 * @date 2021-04-19
 */
public interface ICategoryService 
{
    /**
     * 查询category
     * 
     * @param id categoryID
     * @return category
     */
    public Category selectCategoryById(Long id);

    /**
     * 查询category列表
     * 
     * @param category category
     * @return category集合
     */
    public List<Category> selectCategoryList(Category category);

    /**
     * 新增category
     * 
     * @param category category
     * @return 结果
     */
    public int insertCategory(Category category);

    /**
     * 修改category
     * 
     * @param category category
     * @return 结果
     */
    public int updateCategory(Category category);

    /**
     * 批量删除category
     * 
     * @param ids 需要删除的categoryID
     * @return 结果
     */
    public int deleteCategoryByIds(Long[] ids);

    /**
     * 删除category信息
     * 
     * @param id categoryID
     * @return 结果
     */
    public int deleteCategoryById(Long id);
}
